﻿// Copyright (c) 2014 Morten Bakkedal
// This code is published under the MIT License.

using System;

using FuncLib.DualFunctions.Collections.Generic;
using FuncLib.Functions;

namespace FuncLib.DualFunctions.Collections
{
	[Serializable]
	public class HessianStructure : ReadOnlyHashSet<Tuple<Variable, Variable>>
	{
		public bool Contains(Variable variable1, Variable variable2)
		{
			return Contains(Tuple.Create<Variable, Variable>(variable1, variable2)) || Contains(Tuple.Create<Variable, Variable>(variable2, variable1));
		}
	}
}
